package com.forever7776.life.core.mapper.comment;

import com.forever7776.life.core.common.vo.UserCommentVO;
import com.forever7776.life.core.entity.comment.CommentBlog;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 博客评论表 Mapper 接口
 * </p>
 *
 * @author kz
 * @since 2018-04-09
 */
public interface CommentBlogMapper extends BaseMapper<CommentBlog> {

    /**
     * 查询博客评论列表
     *
     * @param blogId
     * @param userId
     * @return
     */
    List<UserCommentVO> selectBlogCommentList(@Param("blogId") Integer blogId, @Param("userId") String userId);

    /**
     * 查询博客评论的用户ID
     *
     * @param blogId
     * @return
     */
    List<String> selectBlogCommentUserIds(@Param("blogId") Integer blogId);

}
